package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.TimeTasks;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-07-31
 */
public interface TimeTasksService extends IService<TimeTasks> {

    Page<TimeTasks> pageList(PageUtil pageUtil, String keyword, Integer enabled);

    // 获取即将过期的定时任务
    List<TimeTasks> getExpireTask(int day);

    boolean updateEnabled(Long id, Integer enabled);

}
